/**
 * 
 */
package com.common.distributed.datasource.util;

/**
 * @author liubing1
 * StringUtil 工具类
 */
public class StringUtil {

	public static boolean isNullOrEmpty(Object paramObject) {
		return (paramObject == null)
				|| ("".equals(paramObject.toString()))
				|| (paramObject.equals("null") || paramObject.toString().trim()
						.equals(""));
	}

	public static String toString(Object paramObject) {
		if (paramObject == null)
			return "null";
		return paramObject.toString();
	}
}
